package io.github.talelin.latticy.dto.putaway;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.github.talelin.latticy.dto.query.BasePageDTO;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

@Data
public class PutAwaySkuDTO extends PutAwayDTO implements Serializable {



    /**
     * 库位id
     */
    private Integer locationId;

    /**
     * 上架记录id
     */
    @NotNull(message = "{location.id.not-empty}")
    private Integer putAwayId;

    /**
     * sku
     */
    @NotBlank(message = "{sku.code.not-blank}")
    private String sku;

    /**
     * 产品sku名称
     */
    private String skuName;

    /**
     * 箱号
     */
    private String packageNo;

    /**
     * 产品id
     */
    private Long productId;

    /**
     * 上架数量
     */
    private Integer quantity;

    /**
     * 备注
     */
    private String otherRemark;

    /**
     * 库龄时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String libraryTime;
}
